package com.fzc.generic;

/**
 * Created with com.fzc.generic.
 * User: fzc
 * Date: 2017/9/26
 * Time: 23:53
 * Info:
 */
public class TestMethod {

    public static void main(String[] args) {
        Integer[] data = fun(1, 2, 3, 4);
        for (Integer temp : data) {
            System.out.println(temp);
        }
    }
    // <T> 泛型标记申明
    public static <T> T[] fun(T... args) {
        return args;
    }
}
